<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="../jsLib/angular.js"></script>
    <title></title>
</head>
<body>
<div ng-app="app" ng-controller="fun">
    <input type="text" ng-model="aa">
    <input type="text" ng-model="bb">
    <h3>{{cc}}</h3>
    <h3>{{out();}}</h3>
</div>
<script>
    var app = angular.module('app',[]);
    app.controller('fun',function($scope){
        $scope.aa="白庆春";
        $scope.bb="了解一点angular了";
        $scope.cc="试试"
        setTimeout(function(){     $scope.cc="你好" ;alert( $scope.cc)},1000);
        $scope.out = function(){
            return "aa:"+$scope.aa+"   bb:"+$scope.bb
        }
    })
</script>
</body>
</html>